﻿using FluentNHibernate.Mapping;
using EntitiesAndMappings.Entities;

    namespace EntitiesAndMappings.Mappings
    {
        public class MarcaMap : ClassMap<Marca>
        {
            public MarcaMap()
            {
                Id(x => x.Id);
                Map(x => x.Codigo).Length(15).Not.Nullable();
                Map(x => x.Descripcion).Length(100).Not.Nullable();
                Map(x => x.Estado).Length(1).Not.Nullable(); 
            }
        }
    }   
